package cn.cmvideo.springboot.poms.listener;

import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;

public class ListenerTopic2 implements MessageListener
{

	@Override
	public void onMessage(Message message)
	{
		try
		{
			System.out.println("POMS_MSG_TOPIC2，接收线程..." + Thread.currentThread().getName() + "收到的消息是："
					+ ((TextMessage) message).getText());
		} catch (JMSException e)
		{
			e.printStackTrace();
		}
		
	}

}
